package ws.very.android.util.async.askbox;

import java.util.Timer;
import java.util.TimerTask;

public class TimeoutAskBox<T> extends AskBox<T> {
	
	public TimeoutAskBox(Timer timer, long timeout) {
		super();
		timer.schedule(new TimerTask() {

			@Override
			public void run() {
				ex(AskTimeoutEx.self);
			}
		}, timeout);
	}
}
